<?php
	include "connect.php";
	
	$no=$_GET['no'];
	$title=$_POST[title];
	$content=$_POST[content];
		
	$query="UPDATE post SET title='$title', content='$content' WHERE no=$no";
	$result=mysql_query($query) or die('Error: '. mysql_error());

	header('Location: view.php?no='.$no);
	exit;
?> 